import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lab_system.settings")

import django
django.setup()

from theses.models import Thesis

# 查看所有 Thesis 数据
theses = Thesis.objects.all()
for thesis in theses:
    print(thesis.title, thesis.content)